﻿using System.Collections.Generic;
using yiCommerce.Core.Domain.Customers;
using yiCommerce.Core.Domain.Orders;
using yiCommerce.Core.Domain.Payments;
using yiCommerce.Core.Domain.Products;

namespace yiCommerce.Core.Domain.Shops
{
    public class Shop:BaseEntity
    {
        public virtual string ShopName { get; set; }
        public virtual int CustomerId { get; set; }
        public virtual Customer Owner { get; set; }




        private ICollection<Product> _products;

        public virtual ICollection<Product> Products
        {
            get { return _products ?? (_products = new List<Product>()); }
            set { _products = value; }
        }


        private ICollection<Order> _orders;

        public virtual ICollection<Order> Orders
        {
            get { return _orders ?? (_orders = new List<Order>()); }
            set { _orders = value; }
        }

    }
}